package com.coolw.core.generic;

import lombok.Data;

/**
 * 泛型类
 *
 * @author coolw
 * @date 2023/12/22 11:32
 */
@Data
public class GenericMutliClass<T, R> {

    private T data;

    private R result;

    public static void main(String[] args) {
        GenericMutliClass<String, Integer> gs1 = new GenericMutliClass<>();
        gs1.setData("hello");
        gs1.setResult(0);
        System.out.println(gs1.getData() + "|" + gs1.getResult());
    }
}
